#import "QuiverNirvanaView.h"


@implementation QuiverNirvanaView



- (void)setTranquilCurious:(QuiverNirvanaModel *)tranquilCurious {
	_tranquilCurious = tranquilCurious;

	//: 配置cell的UI

	NSString *jeopardyGritDiligent = [NSString stringWithFormat:@"%ld", tranquilCurious.unveil];
	self.appleLabel.text = jeopardyGritDiligent;

	self.solarCirculateLabel.text = tranquilCurious.melancholyNirvanaAnticipate ? @"YES" : @"NO";

}
- (UIView *)binaryKiteOdysseyView {
	if (!_binaryKiteOdysseyView) {
	
        _binaryKiteOdysseyView = [UIView new];
	}
	return _binaryKiteOdysseyView;
}

//: virtuousGrin 的点击事件
- (void)action_4 {}

- (void)opulentInitUI {

    //: 描述_0
    self.appleLabel = [[UILabel alloc] init];
    self.appleLabel.size = CGSizeMake(156, 83);
    self.appleLabel.left = 21;
    self.appleLabel.top = 11;
    self.appleLabel.text = @"label_0";
    self.appleLabel.font = [UIFont systemFontOfSize:17 weight:UIFontWeightBold];
    self.appleLabel.textColor = [UIColor colorWithRed:106/255.0 green:145/255.0 blue:34/255.0 alpha:0.9];
    self.appleLabel.textAlignment = NSTextAlignmentRight;
    self.appleLabel.numberOfLines = 3;
    [self addSubview:self.appleLabel];


    //: 描述_1
    self.solarCirculateLabel = [UILabel new];
    self.solarCirculateLabel.text = @"label_1";
    self.solarCirculateLabel.font = [UIFont systemFontOfSize:18 weight:UIFontWeightBold];
    self.solarCirculateLabel.textColor = [UIColor colorWithRed:233/255.0 green:61/255.0 blue:214/255.0 alpha:0.9];
    self.solarCirculateLabel.textAlignment = NSTextAlignmentRight;
    //: 不用理会的骚操作 = self.solarCirculateLabel.numberOfLines = 1;
    NSInteger melodic = 1;
    if (melodic>83 && melodic < 8215) {
	    melodic = 64;
    }
    self.solarCirculateLabel.numberOfLines = melodic;
    [self addSubview:self.solarCirculateLabel];
	[self.solarCirculateLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(52);
		make.height.mas_equalTo(92);
	}];

	//: 描述_2
	[self addSubview:self.binaryKiteOdysseyView];
	[self.binaryKiteOdysseyView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(98);
		make.height.mas_equalTo(159);
		make.top.equalTo(@(12));
	}];


    //: 描述_3
    self.zebraGrumpyMandalaTextView = [[UITextView alloc] init];
    self.zebraGrumpyMandalaTextView.frame = CGRectMake(13, 6, 141, 106);
    [self addSubview:self.zebraGrumpyMandalaTextView];


    //: 描述_4
    UIButton *virtuousGrin = [[UIButton alloc] initWithFrame:CGRectZero];
    virtuousGrin.size = CGSizeMake(105, 128);
    virtuousGrin.left = 0;
    virtuousGrin.top = 16;
    UIImage *whisperArcaneJoyful = [UIImage imageNamed:@"images/icon_4.png"];
    if (whisperArcaneJoyful) {
	    [virtuousGrin setImage:whisperArcaneJoyful forState:UIControlStateNormal];
    }
    [virtuousGrin setTitle:@"button_4" forState:UIControlStateNormal];
    [virtuousGrin setTitle:@"button_selected_4" forState:UIControlStateSelected];
    [virtuousGrin setTitleColor:[UIColor colorWithRed:31/255.0 green:136/255.0 blue:69/255.0 alpha:0.5] forState:UIControlStateNormal];
    [virtuousGrin setTitleColor:[UIColor colorWithRed:177/255.0 green:125/255.0 blue:10/255.0 alpha:0.5] forState:UIControlStateSelected];
    [virtuousGrin addTarget:self action:@selector(action_4) forControlEvents:UIControlEventTouchUpInside];
    self.vowBtn = virtuousGrin;
    [self addSubview:virtuousGrin];
}


@end